package com.city.service.city.impl;

import com.city.domain.city.CityEvent;
import com.city.repository.city.CityEventRepository;
import com.city.service.city.CityEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @deprecation: 案件
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Service
public class CityEventServiceImpl implements CityEventService {

    @Autowired
    private CityEventRepository eventRepository;


    @Override
    public List<CityEvent> findAll() {
        return eventRepository.findAll();
    }

    @Override
    public CityEvent findById(Integer id) {
        return eventRepository.findOne(id);
    }
}
